package com.hkyl.hospital.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class SickroomExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SickroomExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSickroomIdIsNull() {
            addCriterion("sickroom_id is null");
            return (Criteria) this;
        }

        public Criteria andSickroomIdIsNotNull() {
            addCriterion("sickroom_id is not null");
            return (Criteria) this;
        }

        public Criteria andSickroomIdEqualTo(Integer value) {
            addCriterion("sickroom_id =", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdNotEqualTo(Integer value) {
            addCriterion("sickroom_id <>", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdGreaterThan(Integer value) {
            addCriterion("sickroom_id >", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sickroom_id >=", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdLessThan(Integer value) {
            addCriterion("sickroom_id <", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdLessThanOrEqualTo(Integer value) {
            addCriterion("sickroom_id <=", value, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdIn(List<Integer> values) {
            addCriterion("sickroom_id in", values, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdNotIn(List<Integer> values) {
            addCriterion("sickroom_id not in", values, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdBetween(Integer value1, Integer value2) {
            addCriterion("sickroom_id between", value1, value2, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sickroom_id not between", value1, value2, "sickroomId");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeIsNull() {
            addCriterion("sickroom_code is null");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeIsNotNull() {
            addCriterion("sickroom_code is not null");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeEqualTo(String value) {
            addCriterion("sickroom_code =", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeNotEqualTo(String value) {
            addCriterion("sickroom_code <>", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeGreaterThan(String value) {
            addCriterion("sickroom_code >", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeGreaterThanOrEqualTo(String value) {
            addCriterion("sickroom_code >=", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeLessThan(String value) {
            addCriterion("sickroom_code <", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeLessThanOrEqualTo(String value) {
            addCriterion("sickroom_code <=", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeLike(String value) {
            addCriterion("sickroom_code like", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeNotLike(String value) {
            addCriterion("sickroom_code not like", value, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeIn(List<String> values) {
            addCriterion("sickroom_code in", values, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeNotIn(List<String> values) {
            addCriterion("sickroom_code not in", values, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeBetween(String value1, String value2) {
            addCriterion("sickroom_code between", value1, value2, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andSickroomCodeNotBetween(String value1, String value2) {
            addCriterion("sickroom_code not between", value1, value2, "sickroomCode");
            return (Criteria) this;
        }

        public Criteria andBedNumberIsNull() {
            addCriterion("bed_number is null");
            return (Criteria) this;
        }

        public Criteria andBedNumberIsNotNull() {
            addCriterion("bed_number is not null");
            return (Criteria) this;
        }

        public Criteria andBedNumberEqualTo(Integer value) {
            addCriterion("bed_number =", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberNotEqualTo(Integer value) {
            addCriterion("bed_number <>", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberGreaterThan(Integer value) {
            addCriterion("bed_number >", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("bed_number >=", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberLessThan(Integer value) {
            addCriterion("bed_number <", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberLessThanOrEqualTo(Integer value) {
            addCriterion("bed_number <=", value, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberIn(List<Integer> values) {
            addCriterion("bed_number in", values, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberNotIn(List<Integer> values) {
            addCriterion("bed_number not in", values, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberBetween(Integer value1, Integer value2) {
            addCriterion("bed_number between", value1, value2, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("bed_number not between", value1, value2, "bedNumber");
            return (Criteria) this;
        }

        public Criteria andBedResidueIsNull() {
            addCriterion("bed_residue is null");
            return (Criteria) this;
        }

        public Criteria andBedResidueIsNotNull() {
            addCriterion("bed_residue is not null");
            return (Criteria) this;
        }

        public Criteria andBedResidueEqualTo(Integer value) {
            addCriterion("bed_residue =", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueNotEqualTo(Integer value) {
            addCriterion("bed_residue <>", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueGreaterThan(Integer value) {
            addCriterion("bed_residue >", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueGreaterThanOrEqualTo(Integer value) {
            addCriterion("bed_residue >=", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueLessThan(Integer value) {
            addCriterion("bed_residue <", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueLessThanOrEqualTo(Integer value) {
            addCriterion("bed_residue <=", value, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueIn(List<Integer> values) {
            addCriterion("bed_residue in", values, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueNotIn(List<Integer> values) {
            addCriterion("bed_residue not in", values, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueBetween(Integer value1, Integer value2) {
            addCriterion("bed_residue between", value1, value2, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andBedResidueNotBetween(Integer value1, Integer value2) {
            addCriterion("bed_residue not between", value1, value2, "bedResidue");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressIsNull() {
            addCriterion("sickroom_address is null");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressIsNotNull() {
            addCriterion("sickroom_address is not null");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressEqualTo(String value) {
            addCriterion("sickroom_address =", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressNotEqualTo(String value) {
            addCriterion("sickroom_address <>", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressGreaterThan(String value) {
            addCriterion("sickroom_address >", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressGreaterThanOrEqualTo(String value) {
            addCriterion("sickroom_address >=", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressLessThan(String value) {
            addCriterion("sickroom_address <", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressLessThanOrEqualTo(String value) {
            addCriterion("sickroom_address <=", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressLike(String value) {
            addCriterion("sickroom_address like", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressNotLike(String value) {
            addCriterion("sickroom_address not like", value, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressIn(List<String> values) {
            addCriterion("sickroom_address in", values, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressNotIn(List<String> values) {
            addCriterion("sickroom_address not in", values, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressBetween(String value1, String value2) {
            addCriterion("sickroom_address between", value1, value2, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andSickroomAddressNotBetween(String value1, String value2) {
            addCriterion("sickroom_address not between", value1, value2, "sickroomAddress");
            return (Criteria) this;
        }

        public Criteria andNurseNameIsNull() {
            addCriterion("nurse_name is null");
            return (Criteria) this;
        }

        public Criteria andNurseNameIsNotNull() {
            addCriterion("nurse_name is not null");
            return (Criteria) this;
        }

        public Criteria andNurseNameEqualTo(String value) {
            addCriterion("nurse_name =", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameNotEqualTo(String value) {
            addCriterion("nurse_name <>", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameGreaterThan(String value) {
            addCriterion("nurse_name >", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameGreaterThanOrEqualTo(String value) {
            addCriterion("nurse_name >=", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameLessThan(String value) {
            addCriterion("nurse_name <", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameLessThanOrEqualTo(String value) {
            addCriterion("nurse_name <=", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameLike(String value) {
            addCriterion("nurse_name like", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameNotLike(String value) {
            addCriterion("nurse_name not like", value, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameIn(List<String> values) {
            addCriterion("nurse_name in", values, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameNotIn(List<String> values) {
            addCriterion("nurse_name not in", values, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameBetween(String value1, String value2) {
            addCriterion("nurse_name between", value1, value2, "nurseName");
            return (Criteria) this;
        }

        public Criteria andNurseNameNotBetween(String value1, String value2) {
            addCriterion("nurse_name not between", value1, value2, "nurseName");
            return (Criteria) this;
        }

        public Criteria andBedPriceIsNull() {
            addCriterion("bed_price is null");
            return (Criteria) this;
        }

        public Criteria andBedPriceIsNotNull() {
            addCriterion("bed_price is not null");
            return (Criteria) this;
        }

        public Criteria andBedPriceEqualTo(BigDecimal value) {
            addCriterion("bed_price =", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceNotEqualTo(BigDecimal value) {
            addCriterion("bed_price <>", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceGreaterThan(BigDecimal value) {
            addCriterion("bed_price >", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bed_price >=", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceLessThan(BigDecimal value) {
            addCriterion("bed_price <", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bed_price <=", value, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceIn(List<BigDecimal> values) {
            addCriterion("bed_price in", values, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceNotIn(List<BigDecimal> values) {
            addCriterion("bed_price not in", values, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bed_price between", value1, value2, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andBedPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bed_price not between", value1, value2, "bedPrice");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andAvg1IsNull() {
            addCriterion("avg1 is null");
            return (Criteria) this;
        }

        public Criteria andAvg1IsNotNull() {
            addCriterion("avg1 is not null");
            return (Criteria) this;
        }

        public Criteria andAvg1EqualTo(String value) {
            addCriterion("avg1 =", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1NotEqualTo(String value) {
            addCriterion("avg1 <>", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1GreaterThan(String value) {
            addCriterion("avg1 >", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1GreaterThanOrEqualTo(String value) {
            addCriterion("avg1 >=", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1LessThan(String value) {
            addCriterion("avg1 <", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1LessThanOrEqualTo(String value) {
            addCriterion("avg1 <=", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1Like(String value) {
            addCriterion("avg1 like", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1NotLike(String value) {
            addCriterion("avg1 not like", value, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1In(List<String> values) {
            addCriterion("avg1 in", values, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1NotIn(List<String> values) {
            addCriterion("avg1 not in", values, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1Between(String value1, String value2) {
            addCriterion("avg1 between", value1, value2, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg1NotBetween(String value1, String value2) {
            addCriterion("avg1 not between", value1, value2, "avg1");
            return (Criteria) this;
        }

        public Criteria andAvg2IsNull() {
            addCriterion("avg2 is null");
            return (Criteria) this;
        }

        public Criteria andAvg2IsNotNull() {
            addCriterion("avg2 is not null");
            return (Criteria) this;
        }

        public Criteria andAvg2EqualTo(String value) {
            addCriterion("avg2 =", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2NotEqualTo(String value) {
            addCriterion("avg2 <>", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2GreaterThan(String value) {
            addCriterion("avg2 >", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2GreaterThanOrEqualTo(String value) {
            addCriterion("avg2 >=", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2LessThan(String value) {
            addCriterion("avg2 <", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2LessThanOrEqualTo(String value) {
            addCriterion("avg2 <=", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2Like(String value) {
            addCriterion("avg2 like", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2NotLike(String value) {
            addCriterion("avg2 not like", value, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2In(List<String> values) {
            addCriterion("avg2 in", values, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2NotIn(List<String> values) {
            addCriterion("avg2 not in", values, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2Between(String value1, String value2) {
            addCriterion("avg2 between", value1, value2, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg2NotBetween(String value1, String value2) {
            addCriterion("avg2 not between", value1, value2, "avg2");
            return (Criteria) this;
        }

        public Criteria andAvg3IsNull() {
            addCriterion("avg3 is null");
            return (Criteria) this;
        }

        public Criteria andAvg3IsNotNull() {
            addCriterion("avg3 is not null");
            return (Criteria) this;
        }

        public Criteria andAvg3EqualTo(String value) {
            addCriterion("avg3 =", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3NotEqualTo(String value) {
            addCriterion("avg3 <>", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3GreaterThan(String value) {
            addCriterion("avg3 >", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3GreaterThanOrEqualTo(String value) {
            addCriterion("avg3 >=", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3LessThan(String value) {
            addCriterion("avg3 <", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3LessThanOrEqualTo(String value) {
            addCriterion("avg3 <=", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3Like(String value) {
            addCriterion("avg3 like", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3NotLike(String value) {
            addCriterion("avg3 not like", value, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3In(List<String> values) {
            addCriterion("avg3 in", values, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3NotIn(List<String> values) {
            addCriterion("avg3 not in", values, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3Between(String value1, String value2) {
            addCriterion("avg3 between", value1, value2, "avg3");
            return (Criteria) this;
        }

        public Criteria andAvg3NotBetween(String value1, String value2) {
            addCriterion("avg3 not between", value1, value2, "avg3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}